//
//  PersonInfoTableViewCell.swift
//  SidebarMenu
//
//  Created by LiangXiaobin on 2017/1/24.
//  Copyright © 2017年 AppCoda. All rights reserved.
//

import UIKit

class PersonInfoTableViewCell: UITableViewCell {

    var leftLabel:UILabel?
    var rightLabel:UILabel?
    var rightTextField:UITextField?
    var downImage:UIImageView?
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        leftLabel = UILabel(frame:CGRect(x:14,y:0,width:100,height:40))
        leftLabel?.textAlignment = .left
        leftLabel?.textColor = UIColor.black
        self.contentView.addSubview(leftLabel!)
        
        rightLabel = UILabel(frame:CGRect(x:screenWidth - 500 - 35,y:0,width:500,height:40))
        self.contentView.addSubview(rightLabel!)
        rightLabel?.textAlignment = NSTextAlignment.right
        rightLabel?.textColor = UIColor.white
        
        rightTextField = UITextField(frame:CGRect(x:screenWidth - 500 - 16,y:0,width:500,height:40))
        rightTextField?.textAlignment = .right
        rightTextField?.textColor = UIColor.black
        self.contentView.addSubview(rightTextField!)
        
        
        downImage = UIImageView(frame:CGRect(x:screenWidth - 30,y:18,width:15,height:15))
        downImage?.backgroundColor = UIColor.white
        self.contentView .addSubview(downImage!)
        
        
        let line = UIView(frame:CGRect(x:0,y:79,width:screenWidth,height:1))
        line.backgroundColor = grayColor
        self.contentView.addSubview(line)
        
    }
    
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    


    
}
